<style type="text/css">
a.button_smile {float:left; margin-right:4px; display:block; width:30px; height:30px; background:url('/style/chat/chat_buttons.png'); background-position:-60px 0px;}
a.button_smile:hover {background-position:-60px -30px;}
a.button_smile:active {background-position:-60px -60px;}

a.button_bbcodes {float:left; margin-right:4px; display:block; width:30px; height:30px; background:url('/style/chat/chat_buttons.png'); background-position:-90px 0px;}
a.button_bbcodes:hover {background-position:-90px -30px;}
a.button_bbcodes:active {background-position:-90px -60px;}

a.button_setting {float:left; margin-right:4px; display:block; width:30px; height:30px; background:url('/style/chat/chat_buttons.png'); background-position:-30px 0px;}
a.button_setting:hover {background-position:-30px -30px;}
a.button_setting:active {background-position:-30px -60px;}

a.button_reload {float:left; margin-right:4px; display:block; width:30px; height:30px; background:url('/style/chat/chat_buttons.png'); background-position:0px 0px;}
a.button_reload:hover {background-position:0px -30px;}
a.button_reload:active {background-position:0px -60px;}


#mchatBtn {text-shadow: 0px -1px 0px #DE7300; cursor:pointer; outline:none;padding: 0px 0 5px 0px;margin-top:2px;font-size:8pt;background:url('http://img.zagruzka-plus.ru/buttons/button1111.png');color:#FFFFFF;border:0px; font-weight:bold; width:134px;height:30px;}
#mchatBtn:hover {background-position:0 -30px;}
#mchatBtn:active {background-position:0 -60px;padding: 0px 0 4px 0px;}

</style>
<?if(!$CAN_ADD$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">   </a><?else?> <?endif?></div><?else?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td>  $FLD_AUTOUPD$</td><tr>
<tr><td align="center" style="height:30px"><hr>
<a class="button_reload" href="$RELOAD_URI$" title=""></a>
<?if($SMILES_URI$)?><a class="button_smile" href="$SMILES_URI$" title=" "></a><?endif?>
<?if($BBCODES_URI$)?><a class="button_bbcodes" href="javascript://" onclick="new _uWnd('bbcodes',' BB-',555,100,{autosize:1,resize:0,minh:100,closeonesc:1},{url:'/ajax/all_bb_codes.xml'});return false;" title="BB-"></a><?endif?>
<?if($MSGCTRL_URI$)?><a class="button_setting" href="$MSGCTRL_URI$" title=" "></a><?endif?>
</td><tr></tr></table>
<?if(!$USER_LOGGED_IN$)?><hr>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td colspan="2">$FLD_NAME$</td></tr>
<tr><td width="50%">$FLD_EMAIL$</td><td>$FLD_URL$</td></tr>
</table>
<?endif?>

<input type="text" maxlength="60" name="custom1" class="input11" id="mchatC1F" onblur="if (value =='') {value=''}" onfocus="if(value=='') {value =''}" value="" style="width:100%; margin-bottom:2px;">


<?if($FLD_SECURE$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%">$FLD_SECURE$</td><td align="right">$IMG_SECURE$</td></tr>
</table>
<?endif?>

$FLD_MESSAGE$
<center> $LENGTH_COUNTER$ </center>
 <center><div><input type="submit" value="" class="button11" id="mchatBtn"><div style="display:none; width:100%; height:32px; position:relative;" id="mchatAjax" align="center"><div style="position:absolute; top:8px; left:70px;">...</div></div></div></center>
<?endif?>